package stock_service;

import java.sql.SQLException;
import java.util.List;

import stock_dao.CustomerDao;
import stock_vo.CustomerVO;


public class CustomerServiceImpl implements CustomerService{
	private CustomerDao customerDao;

	public CustomerServiceImpl(CustomerDao customerDao) {
		super();
		this.customerDao = customerDao;
	}

	@Override
	public void insertCustomer(CustomerVO vo) throws SQLException {
		customerDao.insertCustomer(vo);
	}

	@Override
	public List selectCustomer() throws SQLException {
		return customerDao.selectCustomer();
	}

	@Override
	public void deleteCustomer(String cus_number) throws SQLException {
		customerDao.deleteCustomer(cus_number);
	}
	
}
